<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table>
        <tr>
            <th>编号</th>
            <th>作者</th>
            <th>书名</th>
            <th>价格</th>
        </tr>
        <?php
            foreach($book as $value){?>
            <tr>
                 <td><?php echo $value['id'] ?></td>
                 <td><?php echo $value['auhtor'] ?></td>
                 <td><?php echo $value['bookName'] ?></td>
                 <td><?php echo $value['price'] ?></td>
            </tr>
           <?php }
           ?>
    </table>
</body>
</html>

<?php
    $book=array(
        ["id"=>1,"auhtor"=>"zhangsan","bookName"=>'html5',"price"=>"35"],
        ["id"=>2,"auhtor"=>"wangwu","bookName"=>'css',"price"=>"50"],
        ["id"=>3,"auhtor"=>"liliu","bookName"=>'php',"price"=>"60"],
    )
?>